﻿using Site.Business.Interfaces;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace TestSql.Controllers
{
    public class HomeController : Controller
    {
        private IUserRepository _userRepository;

        public HomeController(IUserRepository userRepository)
        {
            _userRepository = userRepository;
        }

        // GET: Profile
        public ActionResult Index()
        {
           var user = _userRepository.GetUsers();
           return View(user);
        }
             
    }
}
